package com.sj.purchase.util;

import com.sj.purchase.modules.cost.domain.WarehouseEnum;

/**
 * Created by 宋开宗 on 2017/8/2 0002.
 */
public class StockUtils {
	private StockUtils() {
	}

	/**
	 * 仓库名称与枚举的转换
	 *
	 * @param warehouseName
	 * @return
	 */
	public static WarehouseEnum getWarehouse(String warehouseName) {
		switch (warehouseName) {
			case "三际总仓":
				return WarehouseEnum.JINANZC;
			case "广州仓":
				return WarehouseEnum.GUANGZHOUZC;
			case "售后仓":
				return WarehouseEnum.SHOUHOU;
		}
		return null;
	}
}
